<?php
namespace app\common\behavior;
use think\Controller;
use think\Hook;


class UserCheck extends Controller
{
   use \traits\controller\Jump;  //类里面引入jump类

   public function run(&$params)
   {
   	   $uid=session('uid');
   	 
   	   if($uid==null||$uid==""||$uid='null'||$uid==0){

   	   	 return ["code"=>203,"msg"=>"未登录状态"];
   	   
   	   }else{
           return ["code"=>200,"msg"=>"已经登录"];
       }
   	  
   }
}